using System;
using System.Collections.Generic;
using Dict.DataModel;

namespace Dict.Dao
{
    public class TableRushEliteBossDao:DaoBase<TableRushEliteBoss>
    {
        public override void AddPrimaryIndex(TableRushEliteBoss model)
        {
            cachePrimary[model.EliteTaskId.ToString()] = model;
        }

        public override string GetFileName()
        {
            return "TableRushEliteBoss.txt";
        }

        protected override TableRushEliteBoss ParseRowData(string[] rowData)
        {
            TableRushEliteBoss data = new TableRushEliteBoss();
			data.EliteTaskId = rowData [0];
			data.EliteBossName = rowData [1];
			data.EliteBossDesc = rowData [2];
			data.IconName = rowData [3];

            if (string.IsNullOrEmpty(rowData[4]))
            {
                data.BossQuality = 0;
            }
            else
            {
                data.BossQuality = int.Parse(rowData[4]);
            }
			data.FirstReward = rowData [5];
			data.Reward = rowData [6];
			data.ConditionTaskId = rowData [7];

            return data;
        }



    }

}
